//
//  ByModelShopsDetail.m
//  chequanbao_ios
//
//  Created by pro on 2017/6/19.
//  Copyright © 2017年 com.itboye. All rights reserved.
//

#import "ByModelShopsDetail.h"

@implementation ByModelShopsDetail

- (void)setAttributes:(NSDictionary *)jsonDic {
    
    [super setAttributes:jsonDic];
    
    
    NSDictionary *seller = jsonDic[@"seller"];
    self.shopsItemModel = [[ByModelShopsListItem alloc] initContentWithDic:seller];
    
    __block NSMutableArray *temp = [NSMutableArray new];
    NSArray<NSDictionary *> *promotion = jsonDic[@"promotion"];
    [promotion enumerateObjectsUsingBlock:^(NSDictionary * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        [temp addObject:obj];
    }];
    self.promotions = promotion.copy;
}

@end
